package org.zoomdev.zoom.dao.handler;

import org.zoomdev.zoom.dao.SqlConfig;

import java.sql.ResultSet;
import java.sql.SQLException;

public class IntResultSetHandler implements ResultSetHandler {
    @Override
    public Object fromResultSet(SqlConfig config, ResultSet rs) throws SQLException {
        rs.next();
        return rs.getInt(1);
    }
}
